package com.night.common.entity;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author rzh6230
 * 2022/8/28 7:23
 */
@Data
public class PageBean<T> {
    @NotNull
    @Min(value = 1, message = "分页信息页码错误")
    private Integer currPage;
    @NotNull
    @Min(value = 1, message = "分页信息页面大小错误")
    private Integer pageSize;
    private Integer totalPages;
    private Integer totalNum;
    private T data;
}

